package org.opens.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import java.util.Date;
import java.util.List;

/**
 * @Date 2020/12/30 21:12
 * @Created by 99126
 */
@Data
@TableName(value = "edu_class")
@Alias("EduClass")
public class EduClass {

    @TableId(value = "class_id", type = IdType.AUTO)
    private Integer classId;

    @TableField(value = "class_name")
    private String className;

    @TableField(value = "create_date")
    private Date createDate;

    @TableField(value = "course_id")
    private Integer courseId;

    private EduCourse eduCourse;

    private List<Student> studentList;

}
